package models

import "github.com/astaxie/beego/orm"

type Star struct {
	Id       int
	UserId   int
	Type     int
	TargetId int64
}

//type
//0 文章
//1 商品
//2 评论
//3 用户
func init() {
	orm.RegisterModel(new(Star))
}
func (*Star)TableName() string {
	return "star"
}

func (*Star) FN_Id() string {
	return "Id"
}
func (*Star) FN_UserId() string {
	return "UserId"
}
func (*Star) FN_Type() string {
	return "Type"
}
func (*Star) FN_TargetId() string {
	return "TargetId"
}